
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@page import="com.tss.util.*"%>
<%@page import="com.jedi.*"%>
<%@page import="com.store.*"%>
<%@page import="java.util.*"%>
<%@page import="java.text.*"%>
<%@include file="../global_var.jsp"%>
<%@include file="../check_login.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    
<title>My JSP 'techcontract_add.jsp' starting page</title>
    
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link href="style/main.css" rel="stylesheet" type="text/css">
	<script language="javascript" src="js/common.js"></script>
	<script language="javascript">
   function clk_goback() {
	history.back();
}
</script>
<%
 String strErr = "";

String taskid       = ParamUtils.getParameter(request,"taskid","0");



 String cmd = ParamUtils.getParameter(request,"cmd","");

PalvMgr palvMgr = new PalvMgr();
Palv palv= palvMgr.get(taskid);

if (palv == null || palv.getTaskid()==0) strErr = "此信息不存在!";
if (!cmd.trim().equals("")) {

 //taskid        = ParamUtils.getParameter(request,"taskid","0");

 //worktime         = ParamUtils.getParameter(request,"worktime","0");
// spartfee      = ParamUtils.getParameter(request,"spartfee","0.00");
 //outefee       = ParamUtils.getParameter(request,"outefee","0.00");
 //tripfee       = ParamUtils.getParameter(request,"tripfee","0.00");
 //month        = ParamUtils.getParameter(request,"month","");
	// year          = ParamUtils.getParameter(request,"year","");     



}
    %>
   <script language="javascript" >
   function clk_submit() {
	var oForm = document.operatorForm;
	oForm.cmd.value = "update";
	return true;
}

</script>
</head>

<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td >
     <form name="operatorForm" method="post" onSubmit="return clk_submit();">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="100" align="center" valign="top" style="padding-top:10px;padding-bottom:10px;">
            <table width="98%" border="0" cellpadding="1" cellspacing="1" bgcolor="#000000">
			

               <%if (!strErr.trim().equals("")) {%>
              <tr> 
                <td height="24" colspan="7" bgcolor="#D7D7DB" style="padding-left:10px;">
                  错误提示：
                 
                  <font color=red><%=strErr%></font>                </td>
              </tr>
              <%}%>
              
              <tr> 
                <td height="24" colspan="7" bgcolor="#858585" style="padding-left:10px;">
                  <font color="#FFFFFF"><strong>损益分析信息</strong></font>  </td>
              </tr>
              <tr> 
                <td width="17%" height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;">
                <span style="padding-left:5px;">工单编号：</td>
                <td width="83%" colspan="6" bgcolor="#EDEDF0" style="padding-left:5px;">
                 <%=taskid%>
                   &nbsp;&nbsp;</td>
              </tr>
			  
              <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >项目名称：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                  <%=palv.getPrjname()%>
                   
                   </td>
              </tr> 
			 <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >项目经理：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                  <%=palv.getUser_name()%>
                   
                   </td>
              </tr> 
               <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >备件成本：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <%=FormatNum.formatCurrencycn(palv.getSpartfee())%>
                   
                   </td>
              </tr> 
               <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >外部人员技术成本：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                  <%=FormatNum.formatCurrencycn(palv.getOutefee())%>
                   
                   </td>
              </tr> 
             
              <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >差旅费：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                  <%=FormatNum.formatCurrencycn(palv.getTripfee())%>
                   
                   </td>
              </tr> 
                <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >是否有收入：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                <%=palv.getMonthin_name()%>
                   </td>
                
              </tr> 
                <tr>
                  <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;"><p>核算年：</p>   
				 </td>
                  <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6">
                  	
                  <%=palv.getY()%>年<%=palv.getM()%>月   &nbsp;</td>
                </tr>
              
              <tr> 
                <td bgcolor="#EDEDF0" colspan="7" align="center">
                
                
                    <input type="button" onClick="clk_goback();" name="btn" value="返回" class="inputButton">  
                  <input type="hidden" name="cmd" value="">              
                  </td>
              </tr>
            </table>
          </td>
        </tr>
       
      </table>
      </form>
    </td>
  </tr>
</table>

</body>
</html>
